<template>
  <div class="myFooter-wrap" v-show="showFooter">
    <div class="myFooter">
      <div class="footer-title">云想衣裳花想容，春风拂槛露华浓</div>
      <div class="icp">本网站由 <a href="javaScript:;">By ordinary：910568940</a> 强力支持</div>
    </div>
  </div>
</template>

<script>
import { reactive, toRefs, onMounted } from 'vue'
import { useRouter } from 'vue-router';
export default {
  name: '',
  setup() {
    const router = useRouter();
    const data = reactive({
      showFooter: true
    })
    onMounted(() => {
      if (router.currentRoute.value.fullpath = '/login' || router.currentRoute.value.fullpath == '/gis') data.showFooter = false
    })
    return {
      ...toRefs(data),
    }
  },
}

</script>
<style scoped lang='scss'>
.myFooter-wrap {
  user-select: none;
  animation: hideToShow 2s;
}

.myFooter {
  // border-radius: 1.5rem 1.5rem 0 0;
  // background: var(--gradientBG);
  background: #fff;
  z-index: 999;
  text-align: center;
  //color: var(--white);
  background-size: 300% 300%;
  animation: gradientBG 10s ease infinite;
}

.footer-title {
  padding-top: 10px;
  font-size: 16px;
}

.icp,
.icp a {
  color: var(--maxGreyFont);
  font-size: 13px;
}

.icp {
  padding-top: 10px;
  padding-bottom: 10px;
}

.icp a {
  text-decoration: none;
  transition: all 0.3s;
}

.icp a:hover {
  color: var(--themeBackground);
}
</style>